package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created on 2017/12/27.
 *
 * @author helin
 * 选手报名信息
 */

public class PlayerViewResultBean implements Parcelable {

    /**
     * ID
     */
    private Integer id;

    /**
     * 文本
     */
    private String viewText;

    /**
     * 结果
     */
    private String resultText;

    /**
     * 选手ID
     */
    private Integer playerId;

    private String videoCover;

    /**
     *
     */
    private Integer isShow;

    private String type;
    /**
     * 选项组件ID
     */
    private Integer activityViewId;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getViewText() {
        return viewText;
    }

    public void setViewText(String viewText) {
        this.viewText = viewText;
    }

    public String getResultText() {
        return resultText;
    }

    public void setResultText(String resultText) {
        this.resultText = resultText;
    }

    public Integer getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Integer playerId) {
        this.playerId = playerId;
    }

    public Integer getActivityViewId() {
        return activityViewId;
    }

    public void setActivityViewId(Integer activityViewId) {
        this.activityViewId = activityViewId;
    }

    public void setVideoCover(String videoCover) {
        this.videoCover = videoCover;
    }

    public String getVideoCover() {
        return videoCover;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.viewText);
        dest.writeString(this.resultText);
        dest.writeValue(this.playerId);
        dest.writeValue(this.activityViewId);
        dest.writeValue(this.videoCover);
    }

    public PlayerViewResultBean() {
    }

    protected PlayerViewResultBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.viewText = in.readString();
        this.resultText = in.readString();
        this.videoCover =in.readString();
        this.playerId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.activityViewId = (Integer) in.readValue(Integer.class.getClassLoader());
    }

    public static final Creator<PlayerViewResultBean> CREATOR = new Creator<PlayerViewResultBean>() {
        @Override
        public PlayerViewResultBean createFromParcel(Parcel source) {
            return new PlayerViewResultBean(source);
        }

        @Override
        public PlayerViewResultBean[] newArray(int size) {
            return new PlayerViewResultBean[size];
        }
    };
}
